<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Sony
 * Date: 13.10.11
 * Time: 11:47
 * To change this template use File | Settings | File Templates.
 */
class HelpsSuggest extends CActiveRecord {

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function tableName() {
        return 'HelpsSuggest';
    }

    static public function isDown($user_id, $item_id) {
        return !HelpsSuggest::model()->exists("user_id = ? AND item_id = ?", array($user_id, $item_id));
    }
}
